Skip to main content

Inspection Setup Wizard (how to configure ROIs)

This guide shows you how to create and configure Regions of Interest (ROIs) for your inspection. ROIs are the specific areas on your parts that the camera will inspect for defects, features, or quality issues.

When to Use This Guide: After you've set up your camera imaging and template image, but before you train your AI model. This is where you tell the camera exactly what areas to inspect.

What are ROIs?

ROIs (Regions of Interest) are boxes or shapes you draw on your image to mark:

  • Areas where defects might appear
  • Features you want to check (scratches, dents, missing parts)
  • Specific components that need inspection
  • Quality checkpoints on your parts

Think of ROIs as: Drawing boxes around the areas you want the camera to "look at" during inspection.

Prerequisites

  • Camera imaging configured and focused
  • Template image captured (if using alignment)
  • Access to Recipe Editor
  • Sample part positioned for inspection

Step 1: Access Inspection Setup

1.1 Navigate to Inspection Setup

  1. Open your Recipe Editor
  2. Click "Inspection Setup" in the left menu
  3. You'll see your camera's live view or template image

What you'll see: A preview of your part with tools to draw ROIs around inspection areas.

Step 2: Create Your First ROI

2.1 Add a New ROI

  1. Click "+ Add ROI" or "+ Rectangle" button
  2. Click and drag on your image to create a box around the area you want to inspect
  3. Release to create the ROI

2.2 Position Your ROI

  1. Drag the ROI to position it over the feature you want to inspect
  2. Drag the corners to resize the ROI to fit the inspection area
  3. Make sure the ROI covers the entire area where defects might appear

ROI Sizing Tips:

  • Cover the full area where problems might occur
  • Don't make it too big - focus on specific features
  • Leave some margin around the feature for part variations

Step 3: Configure ROI Settings

3.1 Name Your ROI

  1. Click on the ROI to select it
  2. Enter a descriptive name like "Weld_Check" or "Surface_Scratch"
  3. Use clear names that describe what you're inspecting

3.2 ROI Type (Automatic)

The ROI type is automatically determined by your recipe:

  • Classification Recipe: ROIs will be used for pass/fail decisions
  • Segmentation Recipe: ROIs will be used for measuring and analyzing features

Note: You don't need to set the ROI type - it matches your recipe type automatically.

Step 4: Add Multiple ROIs

4.1 Create Additional ROIs

  1. Click "+ Add ROI" for each new inspection area
  2. Position each ROI over different features on your part
  3. Give each ROI a unique, descriptive name

4.2 Organize Your ROIs

Example ROI setup for a welded part:

  • ROI 1: "Weld_Quality" (check weld appearance)
  • ROI 2: "Surface_Finish" (check for scratches)
  • ROI 3: "Hole_Present" (verify hole exists)

4.3 ROI Best Practices

  • One ROI per feature you want to inspect
  • Consistent sizing for similar features
  • Clear naming for easy identification
  • Non-overlapping ROIs when possible

Step 5: Test ROI Coverage

5.1 Check ROI Positioning

  1. Move your part slightly (if possible)
  2. Verify ROIs still cover the inspection areas
  3. Adjust ROI size if needed to handle part variations

5.2 Test with Different Parts

  1. Try different part examples if available
  2. Check that ROIs cover the same features on all parts
  3. Resize ROIs if they miss important areas

Step 6: Save and Verify

6.1 Save Your ROI Setup

  1. Click "Save" to store your ROI configuration
  2. Verify all ROIs are named and positioned correctly
  3. Check ROI types match your inspection goals

6.2 Review Your Setup

Quick checklist:

  • ✅ All inspection areas have ROIs
  • ✅ ROIs are properly sized and positioned
  • ✅ ROI names are clear and descriptive
  • ✅ ROIs match your recipe type (classification/segmentation)

Common ROI Patterns

Single Feature Inspection

  • One ROI covering the main inspection area
  • Simple pass/fail classification
  • Example: Checking if a label is present

Multiple Feature Inspection

  • Several ROIs for different features
  • Each ROI inspects a specific area
  • Example: Checking weld quality + surface finish + hole presence

Area Coverage Inspection

  • Large ROI covering the entire inspection surface
  • Segmentation to measure defect coverage
  • Example: Measuring total scratch area on a surface

Troubleshooting ROI Setup

ROI Too Small

Problem: Missing defects at edges Solution: Increase ROI size to cover full feature area

ROI Too Large

Problem: Including unwanted background areas Solution: Reduce ROI size to focus on specific features

ROI Misaligned

Problem: ROI doesn't cover feature on some parts Solution: Use aligner tool or increase ROI size for part variations

Too Many ROIs

Problem: Complex setup, slow processing Solution: Combine similar features into fewer, larger ROIs

Success! Your ROIs are Configured

Your inspection setup now has:

ROIs positioned over all inspection areas

Clear naming for easy identification

Proper sizing to capture defects and features

Appropriate types for your inspection goals

Coverage for part variations and positioning

Next Steps

After configuring your ROIs:

  1. Navigate to Label & Train to teach the AI what to look for
  2. Capture training images showing good and bad examples
  3. Label your ROIs with the correct classifications
  4. Train your AI model using the ROI areas you've defined
  5. Test the inspection with new parts to verify performance

Quick Reference

ROI Creation Steps

  1. Add ROI → Click "+ Add ROI"
  2. Position → Drag to correct location
  3. Size → Drag corners to fit feature
  4. Name → Enter descriptive name
  5. Save → Store configuration

ROI Naming Examples

  • Good names: "Weld_Check", "Surface_Scratch", "Hole_Present"
  • Poor names: "ROI1", "Area", "Check"
  • Concepts: Inspection Setup & ROI Types
  • How-To: Use the Aligner Tool
  • How-To: Train a Classifier
  • How-To: Train a Segmenter
  • How-To: Imaging Setup Walkthrough